package com.zjw.designPattern.listener;

/**
 * @description:
 * @author: zhangjiawei
 * @createTime:2022/3/9 15:54
 * @modified by:
 */
public class Test {
    public static void main(String[] args) {
        Kid xiaoming = new Kid("xiaoming");
        xiaoming.addListener(new WashingHandsListener());
        xiaoming.eat();
    }
}
